win32: Report ScrollDC update region directly
authorAlexander Larsson <alexl@redhat.com>
Thu, 11 Apr 2013 10:12:35 +0000 (12:12 +0200)
committerAlexander Larsson <alexl@redhat.com>
Thu, 11 Apr 2013 10:12:35 +0000 (12:12 +0200)
commit1884271f034ec8b3c7c4e6ffe02c04fd0e865bf9
treec45401aa3dab135850c2839499d6b2c7ab97db71
parent9011a79ed2f205554315b3d15835e07227f1b97b
win32: Report ScrollDC update region directly

Rather than set the window update region and repaint this region
when we get a WM_PAINT we just directly add it to the update
region. No need to roundtrip via win32.

This lets us also make sure we do this drawing in the same update
cycle. This seems especially important on Win7, because ScrollDC
seems to act kind of weird there, not using bitblt in areas where
it seemingly could, which makes scrolling look really flashy.

http://bugzilla.gnome.org/show_bug-cgi?id=674051
gdk/win32/gdkwindow-win32.c